﻿using System;

namespace YJKWallDesignation
{
	public class NamingRegularInfo
	{
		public NamingRegularInfo(NamingRegularInfo other)
		{
			this.m_Type = other.m_Type;
			this.m_RegularName = other.m_RegularName;
			this.m_RegularValue = other.m_RegularValue;
			this.m_ValueReadOnly = other.m_ValueReadOnly;
			this.m_AutoName = other.m_AutoName;
			this.m_AutoNameReadOnly = other.m_AutoNameReadOnly;
			this.m_Checked = other.m_Checked;
		}

		public NamingRegularInfo(NamingRegularType type, string regularName, string regularValue, bool isChecked, bool valueReadOnly, bool autoName, bool autoNameReadOnly)
		{
			this.m_Type = type;
			this.m_RegularName = regularName;
			this.m_RegularValue = regularValue;
			this.m_ValueReadOnly = valueReadOnly;
			this.m_AutoName = autoName;
			this.m_AutoNameReadOnly = autoNameReadOnly;
			this.m_Checked = isChecked;
		}

		public static string GetRegularName(NamingRegularType regularType)
		{
			string result = "";
			switch (regularType)
			{
			case NamingRegularType.NRT_Categoty:
				result = "类别";
				break;
			case NamingRegularType.NRT_Region:
				result = "分区";
				break;
			case NamingRegularType.NRT_Level:
				result = "楼层";
				break;
			case NamingRegularType.NRT_Struct:
				result = "结构属性";
				break;
			case NamingRegularType.NRT_StructThickness:
				result = "结构属性厚度";
				break;
			case NamingRegularType.NRT_Finish:
				result = "面层属性";
				break;
			case NamingRegularType.NRT_FinishThickness:
				result = "面层属性厚度";
				break;
			case NamingRegularType.NRT_Suffix:
				result = "后缀字符串";
				break;
			}
			return result;
		}

		public NamingRegularType m_Type;

		public string m_RegularName;

		public string m_RegularValue;

		public bool m_ValueReadOnly;

		public bool m_AutoName;

		public bool m_AutoNameReadOnly;

		public bool m_Checked;
	}
}
